package khfx.dao.basicdata.impl;

import org.springframework.stereotype.Component;

import khfx.dao.BasicDao;
import khfx.dao.basicdata.BasicDataDao;
import khfx.dao.db.Session;

@Component("basicDataDao")
public class BasicDataDaoImpl extends BasicDao implements BasicDataDao {

	public void delete(Session session, Integer reportDate, String tabName) {
		String delete = "delete from "+tabName+" where  REPORTDATE = ? ";
		update(session, delete, reportDate);
	}

	public void deleteNoLogger(Session session, Integer reportDate,
			String tabName) {
		updateNoLogger(session, tabName);
		
		String delete = "delete from "+tabName+" where  REPORTDATE = ? ";
		update(session, delete, reportDate);
		
	}

}
